package com.onekbase.demo.mybatis;

import com.onekbase.demo.mybatis.service.DemoService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class MybatisApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext cxt = SpringApplication.run(MybatisApplication.class, args);
        DemoService s = cxt.getBean("demoService", DemoService.class);
        s.hello();
    }
}
